<!--
  This file is part of IVRE.
  Copyright 2011 - 2023 Pierre LALET <pierre@droids-corp.org>

  IVRE is free software: you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  IVRE is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
  License for more details.

  You should have received a copy of the GNU General Public License
  along with IVRE. If not, see <http://www.gnu.org/licenses/>.
-->

<div class="result-container"
     ng-repeat="host in results"
     >
  <div host-summary=""></div>
  <div class="full">
    <!-- ports w/ scripts, etc. -->
    <dt ng-repeat-start="port in ::host.ports | orderBy:['protocol','port']"
	ng-if="::port.port !== -1 && script_display_mode_needed_scripts_group(port.scripts)"
	class="port">
      <div port-summary=""></div>
    </dt>
    <dd ng-repeat-end
	ng-if="port.port !== -1 && script_display_mode_needed_scripts_group(port.scripts)">
      <div ng-if="::port.service_name || port.screenshot"
	   class="result-service"
	   service-summary="">
      </div>
      <div ng-repeat="script in ::port.scripts"
	   ng-class="{highlight: wanted_script(script.id)}"
	   ng-if="script_display_mode_needed_script(script.id)">
	{{::script.id}}
	<pre class="result-scripts-output"
	     ng-class="{highlight: wanted_script(script.id)}"
	     script-output="port"/>
      </div>
    </dd>
    <!-- hostscripts -->
    <dt class="result-host-scripts"
	ng-if="script_display_mode_needed_scripts_group(host.scripts)"
	>Host scripts</dt>
    <dd ng-repeat="script in ::host.scripts"
	ng-class="{highlight: wanted_script(script.id)}"
	ng-if="script_display_mode_needed_script(script.id)">
      {{::script.id}}
      <pre class="result-scripts-output"
	   ng-class="{highlight: wanted_script(script.id)}"
	   script-output="host"/>
    </dd>
  </div>
</div>
